home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
DOS
/
MUSIC
/
MELODY21
/
SOUNDSYS.H
< prev
next >
Wrap
Text File
|
1992-07-26
|
1KB
|
28 lines
#define TimerTick 0x8 /* Don't mess with this... */
#define noisemax 8192 /* Change this for a bigger... */
/* ...(or smaller) sound queue... */
/* The following is to make life easier for me and you... */
#define RegList1 unsigned bp, unsigned di, unsigned si, unsigned ds,
#define RegList2 unsigned es, unsigned dx, unsigned cx, unsigned bx,
#define RegList3 unsigned ax, unsigned ip, unsigned cs, unsigned flags
#define RegIntList RegList1 RegList2 RegList3
#define FALSE 0
#define TRUE 1
#define ON 1
#define OFF 0
typedef struct
{
int duration; /* This is the struc of the sound queue */
int freq;
} noise;
void init_sound(void); /* Proto for init sound ISR */
void restore_sound(void); /* Proto for restore sound */
int submit_sound(int freq,int delay); /* Proto for submit sound */
/* Proto for sound ISR */
void interrupt soundsystem(RegIntList);